package com.mallcloud.mall.app.api.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@ApiModel(value = "AppCartWithAmountVO", description = "购物车表")
@Data
public class AppCartWithAmountVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("总额")
    private Long totalMoney;

    @ApiModelProperty("总计")
    private Long finalMoney;

    @ApiModelProperty("商品数量")
    private Integer count;

    @ApiModelProperty("多个店铺的购物车信息")
    private List<AppShopCartVO> shopCarts;

    @ApiModel(value = "AppShopCartVO", description = "购物车表")
    @Data
    public static class AppShopCartVO {

        @ApiModelProperty(value = "店铺ID", required = true)
        private Long shopId;

        @ApiModelProperty(value = "店铺名称", required = true)
        private String shopName;

        @ApiModelProperty("店铺类型1自营店 2普通店")
        private Integer shopType;

        @ApiModelProperty("购物车商品信息")
        private List<AppCartItemVO> shopCartItem;

        @ApiModelProperty(value = "商品总值", required = true)
        private Long total;

        @ApiModelProperty(value = "数量", required = true)
        private Integer totalCount;

    }
}
